﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace QuanLyThuNgan
{
    public class ThuDTLCTL
    {
        ThuDTLDAO data= new ThuDTLDAO();
        public object m_Insert(ThuDTLDTO _info, int IDNguoiNhap, int IDCaThuNgan)
        {
            return data.m_Insert(_info,IDNguoiNhap,IDCaThuNgan);
        }
        public bool m_Update(string sobn, float sotien)
        {
            return data.m_Update(sobn,sotien);
        }
        public bool m_DeleteThuDTL(ThuDTLDTO _info)
        {
            return data.m_Delete(_info);
        }
        public DataTable m_SelectAllThuDTL()
        {
            return data.m_SelectAllThuDTL();
        }
        #region "LeThanhDung"
        public DataTable m_SelectDSBNThanhToanXuatVien(string sohs, string ho, string ten, int namsinh, string sonhapvien, string traibenh)
        {
            return data.m_DSBNThanhToanXuatVien(sohs, ho, ten, namsinh, sonhapvien, traibenh);
        }

        public DataTable m_SelectThanhToanXuatVien(string sohsxv, string sonhapvienxv)
        {
            return data.m_ThanhToanXuatVien(sohsxv, sonhapvienxv);
        }
        //insert thanh toan xuat vien
        public bool m_InsertThanhToanXV(ThuDTLDTO _info)
        {
            return data.m_InsertThanhToanXuatVien(_info);
        }

        //in xuat vien------------------------------
        public DataTable m_InThanhToanXuatVien(string sohsxv, string sonhapvienxv)
        {
            return data.m_InXuatVien(sohsxv, sonhapvienxv);
        }

        //Danh sach xuat vien------------------------------
        public DataTable m_DanhSachXuatVien(string sohsxv, string sonhapvienxv)
        {
            return data.m_DanhSachXuatVien(sohsxv, sonhapvienxv);
        }
        #endregion
    }
}
